package Common.Entities;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * this class represent the salesmen customer list.
 * it contains the salesman ID and an ArrayList of customers Id. 
 * @author Oz Mouchtar
 *
 */
public class SalesmenCustomerLists implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String salesmanId;
	private ArrayList<String> customersID;
	
	public SalesmenCustomerLists(String salesmanId) {
		this.salesmanId = salesmanId;
		this.customersID = new ArrayList<String>();
	}
	public String getSalesmanId() {
		return salesmanId;
	}
	public void setSalesmanId(String salesmanId) {
		this.salesmanId = salesmanId;
	}
	public String getCustomerID(int index) {
		return customersID.get(index);
	}
	public void setCustomerID(int index, String customerID) {
		this.customersID.set(index, customerID);
	}
	public void addCustomerID(String added){
		customersID.add(added);
	}
	/**
	 * @return the customersID
	 */
	public ArrayList<String> getCustomersID() {
		return customersID;
	}
	/**
	 * @param customersID the customersID to set
	 */
	public void setCustomersID(ArrayList<String> customersID) {
		this.customersID = customersID;
	}
	
	
	
	


}
